package com.yuanfeng.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yuanfeng.business.dto.ShopBaseListDTO;
import com.yuanfeng.business.entity.ShopCompany;
import com.yuanfeng.business.entity.ShopMessageLogEntity;
import com.yuanfeng.business.vo.ShopReturnBondListVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Entity com.yuanfeng.business.entity.ShopCompany
 */
@Mapper
public interface ShopCompanyMapper extends BaseMapper<ShopCompany> {

    /**
     * 更新店铺
     *
     * @param detail
     */
    void updateShopBusiness(@Param("param") ShopMessageLogEntity detail);


    /**
     * 更新店铺品牌
     *
     * @param param
     */
    void updateShopReturnBond(@Param("param") ShopBaseListDTO param);

    /**
     * 分页查询品牌集合
     *
     * @param page
     * @param param
     * @return
     */
    IPage<ShopReturnBondListVO> queryShopReturnBondList(IPage<ShopReturnBondListVO> page, @Param("param") ShopBaseListDTO param);


    /**
     * 更新
     *
     * @param param
     */
    void updateDeposit(@Param("param") ShopBaseListDTO param);

    /**
     * 分页查询品牌
     *
     * @param page
     * @param param
     * @return
     */
    IPage<ShopReturnBondListVO> queryBrandList(IPage<ShopReturnBondListVO> page, @Param("param") ShopBaseListDTO param);

    void deleteShopBase(@Param("shopId")String shopId);

    void deleteShopCompany(@Param("shopId")String shopId);

    void deleteShopJoinBase(@Param("userId")String userId);

    void deleteShopJoinPay(@Param("userId")String userId);
}




